projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bcbc7a
)
also test >1.0 values when converting from float to u8
author
Øyvind Kolås
<pippin@gimp.org>
Tue, 1 May 2012 11:40:28 +0000
(13:40 +0200)
committer
Øyvind Kolås
<pippin@gimp.org>
Tue, 1 May 2012 11:40:28 +0000
(13:40 +0200)
tests/floatclamp.c
patch
|
blob
|
history
diff --git
a/tests/floatclamp.c
b/tests/floatclamp.c
index 953b701a1e680cbf8000ec965a14324741f454cd..617b440d42077191390c32591c5581c669145150 100644
(file)
--- a/
tests/floatclamp.c
+++ b/
tests/floatclamp.c
@@
-56,8
+56,8
@@
main (int argc,
int OK = 1;
babl_init ();
{
- float in[][4] = {{ 0.21582, -0.55, -0.14, 1.0 }};
- unsigned char out[][4] = {{ 55, 0, 0, 255 }};
+ float in[][4] = {{ 0.21582, -0.55, -0.14, 1.0 }
, {0.0, 1.0, 2.0, 3.0}
};
+ unsigned char out[][4] = {{ 55, 0, 0, 255 }
, {0,255,255,255}
};
CHECK_CONV("float -> u8", unsigned char,
babl_format("R'G'B'A float"),